import java.sql.*;
import java.io.Serializable;

public class DBRow implements Serializable
{
   private String cols[] ;

   public  String getColumn(int i) {
	if ( i >= 0 && i < cols.length)
		return cols[i];
	else return "";
   }
   public  String getCol(int i) { return cols[i]; }
   public  void   setColumn( int i, String s ) { cols[i] = s; }
   public  void   setCol( int i, String s ) { cols[i] = s; }
   public  int    getColumnCount( ) { return cols.length; }

   public DBRow(int sz) {
	cols = new String[sz];
	for ( int i = 0; i < sz; i ++ ) cols[i] = new String();
   }
   public DBRow( DBRow row ) {
	for ( int i = 0; i < cols.length; i ++ )
		cols[i] = new String(row.cols[i]);
   }
}
